#ifndef _CAMERA_H_
#define _CAMERA_H_

#include "vec.hpp"

class Camera : public Box2f
{
private:
	Vec2f min;
	Vec2f max;
	Vec2f vel;

public:
	Camera();
	~Camera();

	void Size(float w, float h);
	void Min(float left, float top);
	void Max(float right, float bott);

	void Vel(float dx, float dy);
	void Pos(float x, float y);

	void Update();
	void Out(float upfrac = 0);

	friend class Game;
};

extern Camera Cam;

#endif
